import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

public class java6 {
    public static void main(String[] args) {
        Integer[] array1 = {1, 2, 3};
        Integer[] array2 = {3, 4, 5, 2};
        List<Integer> list1 = Arrays.asList(array1);
        List<Integer> list2 = Arrays.asList(array2);
        List<Integer> uniqueToList1 = list1.stream().filter(e -> !list2.contains(e)).collect(Collectors.toList());
        List<Integer> uniqueToList2 = list2.stream().filter(e -> !list1.contains(e)).collect(Collectors.toList());
        uniqueToList1.addAll(uniqueToList2);
        System.out.println(uniqueToList1);
    }
}
